package hc.j2me.load;

import hc.core.util.HCURL;
import hc.j2me.util.SoundUtil;

public class Tone implements SerialClass{
	public Tone(){
		try{
			int note = Integer.parseInt(HCURL.getNextParaValue());
			int duration = Integer.parseInt(HCURL.getNextParaValue());
			int volume = Integer.parseInt(HCURL.getNextParaValue());
			
			SoundUtil.playTone(note, duration, volume);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
}
